﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyApplyJoinPartyList.aspx.cs" Inherits="JoinParty.admin.ApplyJoin.MyApplyJoinPartyList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" runat="server" BodyPadding="5px"
            ShowBorder="false" Layout="VBox" BoxConfigAlign="Stretch" BoxConfigPosition="Start"
            ShowHeader="false" Title="入党申请查看">
            <Items>
                <f:Form ID="Form2" runat="server" Height="36px" BodyPadding="5px" ShowHeader="false" ShowBorder="false" LabelAlign="Right">
                    <Rows>
                        <f:FormRow>
                            <Items>
                                <f:TextBox ID="txtUserName" runat="server" Label="姓名" LabelAlign="right" LabelWidth="40px" MaxLength="20"></f:TextBox>
                                <f:TextBox ID="txtBranch" runat="server" Label="所属党支部" LabelAlign="right" LabelWidth="80px" MaxLength="20"></f:TextBox>
                                <f:DropDownList ID="ddlStatus" runat="server" Label="状态" LabelAlign="right" LabelWidth="40px">
                                    <f:ListItem Value="" Text="===请选择===" />
                                    <f:ListItem Value="1" Text="申请中" />
                                    <f:ListItem Value="0" Text="申请取消" />
                                </f:DropDownList>
                                <f:Button Margin="0 0 0 5" ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" Icon="SystemSearch"></f:Button>
                            </Items>
                        </f:FormRow>
                    </Rows>
                </f:Form>
                <f:Grid ID="Grid1" runat="server" BoxFlex="1" ShowBorder="true" ShowHeader="false"
                    EnableCheckBoxSelect="true"
                    DataKeyNames="AppllicationID,UserName" AllowSorting="true" OnSort="Grid1_Sort" SortField="UserName"
                    SortDirection="DESC" AllowPaging="true" IsDatabasePaging="true" 
                    OnRowCommand="Grid1_RowCommand" OnPageIndexChange="Grid1_PageIndexChange">
                    <Toolbars>
                        <f:Toolbar ID="Toolbar1" runat="server">
                            <Items>
                                <f:ToolbarFill ID="ToolbarFill" runat="server">
                                </f:ToolbarFill>
                                <f:Button ID="btnAdd" runat="server" Icon="Add" EnablePostBack="false" Text="新增" CssStyle="align:right"></f:Button>
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <PageItems>
                        <f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                        </f:ToolbarSeparator>
                        <f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数：">
                        </f:ToolbarText>
                        <f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged"
                            runat="server">
                            <f:ListItem Text="10" Value="10" />
                            <f:ListItem Text="20" Value="20" />
                            <f:ListItem Text="50" Value="50" />
                            <f:ListItem Text="100" Value="100" />
                        </f:DropDownList>
                    </PageItems>
                    <Columns>
                        <f:RowNumberField Width="35px" EnablePagingNumber="true" />
                        <f:BoundField DataField="UserName" SortField="UserName"  HeaderText="姓名" Width="120px" TextAlign="Center" />
                        <f:BoundField DataField="Gender" SortField="Gender" Width="50px" HeaderText="性别" TextAlign="Center" />
                        <f:BoundField DataField="IdentityCard" SortField="IdentityCard" Width="150px" HeaderText="身份证号码" TextAlign="Center" />
                        <f:BoundField DataField="Nation" SortField="Nation" Width="50px" HeaderText="民族" TextAlign="Center" />
                        <f:BoundField DataField="NativePlace" SortField="NativePlace" Width="50px" HeaderText="籍贯" TextAlign="Center" />
                        <f:BoundField DataField="Educational" SortField="Educational" Width="80px" HeaderText="文化程度" TextAlign="Center" />
                        <f:BoundField DataField="MobileNo" SortField="MobileNo" Width="100px" HeaderText="联系电话" TextAlign="Center" />
                        <f:BoundField DataField="CreateTime" SortField="CreateTime" Width="120px" HeaderText="递交申请书时间" TextAlign="Center" DataFormatString="{0:yyyy-MM-dd}" />
                        <f:BoundField DataField="BranchName" SortField="BranchName" ExpandUnusedSpace="true" HeaderText="所属党支部" TextAlign="center" />
                        <f:BoundField DataField="StatusName" SortField="Status" Width="80px" HeaderText="状态" TextAlign="Center" />
                        <f:WindowField ColumnID="ProcessStep" TextAlign="Center" Icon="Pencil" ToolTip="查看" HeaderText="流程履历" 
                             WindowID="WProcessStep" Title="流程履历" DataIFrameUrlFields="AppllicationID" DataIFrameUrlFormatString="../ToDoFlow/ShowFlowStep.aspx?AppllicationID={0}" Width="80px"></f:WindowField>
                        <f:WindowField ColumnID="editField" TextAlign="Center" Icon="Pencil" ToolTip="编辑" HeaderText="查看详情"
                            WindowID="WApplyJoinParty" Title="入党申请详细信息" DataIFrameUrlFields="AppllicationID" DataIFrameUrlFormatString="~/App/JoinParty/admin/ApplyJoin/ApplyJoinPartyEdit.aspx?AppllicationID={0}"
                            Width="80px" />
                    </Columns>
                </f:Grid>
            </Items>
        </f:Panel>
        <f:Window ID="WApplyJoinParty" runat="server" IsModal="true" Hidden="true" Target="Top" EnableResize="true"
            EnableMaximize="true" EnableIFrame="true" IFrameUrl="about:blank" Width="850px"
            Height="600px" OnClose="Window1_Close">
        </f:Window>
        <f:Window ID="WProcessStep" runat="server" IsModal="true" Hidden="true" Target="Top" EnableResize="true"
            EnableMaximize="true" EnableIFrame="true" IFrameUrl="about:blank" Width="850px"
            Height="600px" OnClose="Window1_Close">
        </f:Window>
    </form>
</body>
</html>
